<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/3/7
 * Time: 14:12
 */

namespace app\models;


use yii\base\Model;

class Test extends Model
{
    public $name;
    public $email;

    public function rules()
    {
        return [
            ['name', 'required'],
        ];
    }
}